#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QTimer>
namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = nullptr);
    ~Widget();

private:
    Ui::Widget *ui;
    //定时器id
    int mTimeId;
    //定时器
    QTimer *mTimer;

protected:
    void timerEvent(QTimerEvent *event);
private slots:
    void on_pushButton_start_clicked();
    void on_pushButton_stop_clicked();
    void on_pushButton_start_3_clicked();
    void on_pushButton_stop_3_clicked();
};

#endif // WIDGET_H
